package com.alphaking.model;
// default package

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "blog")
public class Blog implements java.io.Serializable {

	// Fields

	private String blogId;
	private String oneLevelCategoryId;
	private String title;
	private String content;
	private String surfacePlot;
	private Timestamp createTime;
	private Integer publisher ; 
	private Integer ispublished ; 



	public Blog() {
		super();
		// TODO Auto-generated constructor stub
	}



	public Blog(String blogId, String oneLevelCategoryId, String title,
			String content, String surfacePlot, Timestamp createTime,
			Integer publisher, Integer ispublished) {
		super();
		this.blogId = blogId;
		this.oneLevelCategoryId = oneLevelCategoryId;
		this.title = title;
		this.content = content;
		this.surfacePlot = surfacePlot;
		this.createTime = createTime;
		this.publisher = publisher;
		this.ispublished = ispublished;
	}


	@Id
	@Column(name = "blogId", unique = true, nullable = false)
	public String getBlogId() {
		return blogId;
	}



	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}


	@Column(name = "oneLevelCategoryId")
	public String getOneLevelCategoryId() {
		return oneLevelCategoryId;
	}



	public void setOneLevelCategoryId(String oneLevelCategoryId) {
		this.oneLevelCategoryId = oneLevelCategoryId;
	}


	@Column(name = "title")
	public String getTitle() {
		return title;
	}



	public void setTitle(String title) {
		this.title = title;
	}


	@Column(name = "content")
	public String getContent() {
		return content;
	}



	public void setContent(String content) {
		this.content = content;
	}


	@Column(name = "surfacePlot")
	public String getSurfacePlot() {
		return surfacePlot;
	}



	public void setSurfacePlot(String surfacePlot) {
		this.surfacePlot = surfacePlot;
	}

	@Column(name = "createTime")
	public Timestamp getCreateTime() {
		return createTime;
	}



	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}


	@Column(name = "publisher")
	public Integer getPublisher() {
		return publisher;
	}


	public void setPublisher(Integer publisher) {
		this.publisher = publisher;
	}


	@Column(name = "ispublished")
	public Integer getIspublished() {
		return ispublished;
	}



	public void setIspublished(Integer ispublished) {
		this.ispublished = ispublished;
	}


}